package com.gupao.plugin;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

import java.util.List;

@Mojo(name = "FirstGoal", defaultPhase = LifecyclePhase.PACKAGE)
public class FirstGoal extends AbstractMojo {
    @Parameter(property = "args")
    List<String> args;

    public void execute() throws MojoExecutionException, MojoFailureException {
        System.out.println("hello first plugin!!! " + args);
    }
}
